<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="hdr">
	<div class="top">
	<div class="left">
	<div class="right">
	<div class="center"></div>
	</div>
	</div>
	</div>
	<div class="middle">
	<div class="left">
	<div class="right">
	<div class="center">
		<ul class="region">
			<li class="rLeft">
			<div class="logoDiv" onclick="actionOnLogo()"><img class="logoImg" src="<s:url value="/images/logo.jpg" />" /></div>
			</li>
			<li class="rCenter">
			<div class="appName">Holistic Programme Planning System<!-- InstanceBeginEditable name="appName" --><!-- InstanceEndEditable --></div>
			</li>
			<li class="rRight">
			<s:if test="#session.SPRING_SECURITY_CONTEXT!=null">
			<div class="trm">
			<div class="top">
			<ul>
				<li>
				<div style="padding: 3px 7px">Role</div>
				</li>
				<li>
					<form id="roleForm" action="<s:url value="/home/home!changeRole.action"/>" method="post">
						<s:select name="roleCode" list="#session.SPRING_SECURITY_CONTEXT.authentication.principal.roleList" value="#session.roleCode" onchange="$('#roleForm').submit();" ></s:select>
					</form>
				</li>
				<li class="sep sep4">|</li>
				<li><a href="<s:url value="/home/home.action"/>">Home</a></li>
				<li class="sep sep4">|</li>
				<li><a href="<s:url value="/j_spring_security_logout"/>">Logout</a></li>
		
			</ul>
			</div>
		
			<div class="middle"></div>
			<div class="bottom"></div>
			<!-- InstanceBeginEditable name="trm" --><!-- InstanceEndEditable --></div>
			</s:if>
			</li>
		</ul>
	</div></div></div></div>
	
	<div class="bottom"><div class="left"><div class="right"><div class="center">
	</div></div></div></div>
</div>